package work3;

/**
 * @author zhangxufeng@meitunmama.com 2019-08-28 11:28:11
 */
public class App {

  public static void main(String[] args) {
    String s = "abcabcbb";
    printLength(s);

    s = "bbbbb";
    printLength(s);

    s = "pwwkew";
    printLength(s);

    s = " ";
    printLength(s);
  }

  private static void printLength(String s) {
    Solution solution = new Solution();
    int result = solution.lengthOfLongestSubstring(s);
    System.out.println(result);
  }

}
